import http from 'wechat-http'

http.baseURL = 'https://live-api.itheima.net'

http.intercept.response = (res) => {
  // 解套
  // 剥离无用数据
  return res.data
}

wx.http = http

export default http